<p>
<img src="./Imagen/Funcion/VTitulo.JPG" >
<strong>Calendario de Vacunas</strong> <hr style="position: relative">
<img src="./Imagen/Funcion/VListar.JPG">
</p>
<form id="fCalendario" name="fCalendario" method="post" action="CalendarioListarServlet">
  <p>Buscar :
    <label>
    <input type="text" name="txtPacNombre" id="txtPacNombre" />
    </label>
    <label>
    <input type="submit" name="button" id="button" value="Buscar" />
    
    
    
    </label>    
  </p>
</form>
<table width="850" height="65" border="1" cellpadding="0" cellspacing="0">
  <tr>
    <th width="50"  scope="col">Item</th>
    <th width="70" scope="col">Codigo</th>
    <th width="100" scope="col">Paciente</th>
    <th width="100" scope="col">Especie</th>    
    <th width="150" scope="col">Raza</th>
    <th width="200" scope="col">Producto</th>
    <th width="80" scope="col">Vacuna</th>
    <th width="80" scope="col">Fecha de Vacuna</th>
    <th width="80" scope="col">Proxima Vacuna</th>    
  </tr>
  <%@page import="java.util.*, veterinaria.modelo.Calendario" %>
  <%Collection<Calendario> arreglo = (ArrayList<Calendario>)request.getAttribute("aCalendario");
    if (arreglo != null) { 
       int i = 1;
       for (Calendario x : arreglo) {%>  
            <tr>
                <td><%=i++ %></td>
                <td><% out.print(x.getPaciente().getPacCodigo()); %></td>
                <td><% out.print(x.getPaciente().getPacNombre()); %></td>
                <td><% out.print(x.getPaciente().getEspecie().getEspNombre()); %></td>
                <td><% out.print(x.getPaciente().getRaza().getRazNombre()); %></td>
                <td><% out.print(x.getVacuna().getProducto().getProNombre()); %></td>
                <td><% out.print(x.getVacuna().getVacNombre()); %></td>
                <td><% out.print(x.getCalFecVacuna()); %></td>
                <td><% out.print(x.getCalProVacuna()); %></td>                
            </tr>
       <% }  
    } %> 
</table>